import axios from '@/utils/request'

import config from '@/common/config'

let base = config.getMkBasePath();

/**
 * 商铺订单佣金计算表
 *1    默认只开放普通查询，所有查询，只要上传	 分页参数 {currentPage:当前页码从1开始,pageSize:每页记录数,total:总记录【数如果是0后台会自动计算总记录数非0不会自动计算】}，后台都会自动按分页查询 其它 api用到再打开，没用到的api请注释掉，
 *2 查询、新增、修改的参数格式  params={id:'主键 主键',totalPrice:'商品总价',totalFee:'商品佣金',locationId:'售卖门店',locationName:'门店名称',orderCount:'订单总数',goodsCount:'商品总数',custCount:'客户总数',bizDate:'归属业务日期',startComputedDate:'开始核算时间',computedStatus:'统计状态0正在统计1统计完成2统计失败3不再统计',productNums:'产品总数量',shopId:'门店归属商户'}
 **/
 
//普通查询 条件之间and关系  
export const listLocaOrderFee = params => { return axios.get(`${base}/mk/mng/computed/day/locaOrderFee/list`, { params: params }); };

//模糊查询商铺订单佣金计算表 条件之间or关系  
//export const listLocaOrderFeeKey = params => { return axios.get(`${base}/mk/mng/computed/day/locaOrderFee/listKey`, { params: params }); };

//删除一条商铺订单佣金计算表 params={id:'主键 主键'}
export const delLocaOrderFee = params => { return axios.post(`${base}/mk/mng/computed/day/locaOrderFee/del`,params); };

//批量删除商铺订单佣金计算表  params=[{id:'主键 主键'}]
export const batchDelLocaOrderFee = params => { return axios.post(`${base}/mk/mng/computed/day/locaOrderFee/batchDel`, params); };

//修改一条商铺订单佣金计算表记录
export const editLocaOrderFee = params => { return axios.post(`${base}/mk/mng/computed/day/locaOrderFee/edit`, params); };

//新增一条商铺订单佣金计算表
export const addLocaOrderFee = params => { return axios.post(`${base}/mk/mng/computed/day/locaOrderFee/add`, params); };